﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


public class BLL_tbl_surface_area
{
    public BLL_tbl_surface_area()
    {

    }

    public List<tbl_surface_area> select(int SURFACE_AREA_ID)
    {
        DAL_tbl_surface_area dal = new DAL_tbl_surface_area();
        return dal.select(SURFACE_AREA_ID);
    }

    public List<tbl_surface_area> selectAll()
    {
        DAL_tbl_surface_area dal = new DAL_tbl_surface_area();
        return dal.selectAll();
    }

    public bool insert(tbl_surface_area tbl)
    {
        DAL_tbl_surface_area dal = new DAL_tbl_surface_area();
        int i = 0;
        i = dal.insert(
            tbl.SURFACE_AREA_TYPE
, tbl.IS_ACTIVE
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_surface_area tbl)
    {
        DAL_tbl_surface_area dal = new DAL_tbl_surface_area();
        int i = 0;
        i = dal.update(
            tbl.SURFACE_AREA_ID
, tbl.SURFACE_AREA_TYPE
, tbl.IS_ACTIVE
, tbl.MODIFIED_BY
, tbl.MODIFIED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_surface_area tbl)
    {
        DAL_tbl_surface_area dal = new DAL_tbl_surface_area();
        int i = 0;
        i = dal.delete(
                tbl.SURFACE_AREA_ID
        );

        return Convert.ToBoolean(i);
    }


}

